API Documentation
InfiniteMask.h
1 // InfiniteMask.h
3 //
5 
6 namespace nkGraphics
7 {
13  template<typename T>
15  {
16  public :
17 
21  InfiniteMask () = default ;
25  InfiniteMask (const InfiniteMask<T>& other) ;
33  ~InfiniteMask () = default ;
34 
40  void resize (unsigned int size) ;
47  void setVal (unsigned int index, T value) ;
51  void clear () ;
56  T getVal (unsigned int index) const ;
60  unsigned int getOrder () const ;
61 
70  bool checkSubPartEquality (const InfiniteMask<T>& other, unsigned int begin, unsigned int end) const ;
80  bool checkSubPartFill (const InfiniteMask<T>& other, unsigned int begin, unsigned int end) const ;
81 
88  typename std::vector<T>::reference operator[] (size_t index) ;
95  T operator[] (size_t index) const ;
96 
103  bool operator== (const InfiniteMask<T>& other) const ;
110  bool operator!= (const InfiniteMask<T>& other) const ;
117  bool operator< (const InfiniteMask<T>& other) const ;
118 
133  } ;
134 
139 }
nkGraphics::InfiniteMask::operator[]
std::vector< T >::reference operator[](size_t index)
nkGraphics::InfiniteMask::getVal
T getVal(unsigned int index) const
nkGraphics::InfiniteInt64Mask
InfiniteMask< unsigned long long > InfiniteInt64Mask
Typedefed unsigned long long mask.
Definition: InfiniteMask.h:138
nkGraphics::InfiniteMask::checkSubPartFill
bool checkSubPartFill(const InfiniteMask< T > &other, unsigned int begin, unsigned int end) const
nkGraphics::InfiniteMask
A more generic version of the InfiniteBitMask.
Definition: InfiniteMask.h:15
nkGraphics::InfiniteMask::operator==
bool operator==(const InfiniteMask< T > &other) const
nkGraphics::InfiniteByteMask
InfiniteMask< char > InfiniteByteMask
Typedefed char mask.
Definition: InfiniteMask.h:135
nkGraphics::InfiniteMask::InfiniteMask
InfiniteMask(const InfiniteMask< T > &other)
nkGraphics::InfiniteMask::getOrder
unsigned int getOrder() const
nkGraphics::InfiniteShortMask
InfiniteMask< short > InfiniteShortMask
Typedefed short mask.
Definition: InfiniteMask.h:136
nkGraphics::InfiniteMask::operator!=
bool operator!=(const InfiniteMask< T > &other) const
nkGraphics::InfiniteMask::operator<
bool operator<(const InfiniteMask< T > &other) const
nkGraphics::InfiniteMask::clear
void clear()
nkGraphics::InfiniteMask::operator=
InfiniteMask & operator=(const InfiniteMask< T > &other)
nkGraphics::InfiniteMask::InfiniteMask
InfiniteMask(InfiniteMask< T > &&other)
nkGraphics::InfiniteMask::InfiniteMask
InfiniteMask()=default
nkGraphics::InfiniteMask::setVal
void setVal(unsigned int index, T value)
nkGraphics::InfiniteMask::~InfiniteMask
~InfiniteMask()=default
nkGraphics::InfiniteMask::checkSubPartEquality
bool checkSubPartEquality(const InfiniteMask< T > &other, unsigned int begin, unsigned int end) const
nkGraphics
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7
nkGraphics::InfiniteMask::resize
void resize(unsigned int size)
nkGraphics::InfiniteIntMask
InfiniteMask< int > InfiniteIntMask
Typedefed int mask.
Definition: InfiniteMask.h:137